package com.lianxi

/**
  * Created by adengdeng on 2017/8/7 
  */
object Lx1 {

  def main(args: Array[String]): Unit = {

    val prices = Array(("A", 1.0), ("B", 2.0),("C",3.1))

    val newPrice = for((k,v)<- prices) yield (k, v* 0.9)

    println(newPrice.mkString(" "))
  }
}
